package com.netease.xone.adapter;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

import com.netease.xone.fragment.FragmentMainPagerFactory;

public class AdapterMainFragmentPager extends AdapterBaseFragmentPager{

	public AdapterMainFragmentPager(FragmentManager fm, Context context) {
		super(fm, context);
	}

	@Override
	public Fragment getItem(int position) {
		Fragment fragment = FragmentMainPagerFactory.creator(position);
		super.onAttachFragment(fragment);
		return fragment;
	}

	@Override
	public int getCount() {
		return 5;
	}
}
